@extends('admin.main')
@section('body')
    <div class="main-title">
        <h2>分类管理</h2>
    </div>
    <div>
        <a class="btn" href="{{urlAdmin('bucketCategory','getStore',['shop_id'=>request('shop_id')])}}">从分类库中选择</a>
        <a class="btn" href="{{urlAdmin('bucketCategory','getAdd',['shop_id'=>request('shop_id')])}}">新 增</a>
        <button class="btn ajax-post confirm" target-form="ids" url="{{urlAdmin('bucketCategory','anyDelShopCate',['shop_id'=>request('shop_id')])}}">删 除</button>
    </div>
    <!-- 数据列表 -->
    <div class="data-table">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th class="">名称</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            @if($cate && count(isset($cate['category_data'])))
                @foreach($cate['category_data'] as $v)
                    <tr>
                        <td><input class="ids" type="checkbox" name="ids[]" value="{{$v['id']}}" /></td>
                        <td>{{$v['title']}}</td>
                        <td>
                            <a href="{{urlAdmin('bucketCategory','anyDelShopCate',['ids'=>$v['id'],'shop_id'=>request('shop_id')])}}" class="confirm ajax-get">删除</a>
                        </td>
                    </tr>
                @endforeach
            @else
                <td colspan="8" class="text-center">aOh! 暂时还没有内容!</td>
            @endif
            </tbody>
        </table>

    </div>
    <!-- /表格列表 -->
@endsection

